package com.sls.web.manager.sys.service;

import com.sls.web.manager.page.Pagination;
import com.sls.web.manager.pojo.UserInfoVO;
import com.sls.web.manager.sys.pojo.Role;
import com.sls.web.manager.sys.querybean.RoleInfoQuery;

public interface RoleService {
	/**
	 * 添加角色
	 * 
	 * @param role
	 * @param userinfo
	 * @return
	 * @throws Exception
	 */
	public boolean addRole(Role role, UserInfoVO userinfo) throws Exception;

	/**
	 * 根据roleId查询角色
	 * 
	 * @param role
	 * @param userinfo
	 * @return
	 * @throws Exception
	 */
	public Role queryRoleInfoById(String id, UserInfoVO userinfo)
			throws Exception;

	/**
	 * 修改角色
	 * 
	 * @param role
	 * @param userinfo
	 * @return
	 * @throws Exception
	 */
	public boolean updateRole(Role role, UserInfoVO userinfo) throws Exception;

	/**
	 * 查询角色列表
	 * 
	 * @param role
	 * @param userinfo
	 * @return
	 */
	public Pagination<?> queryRole(RoleInfoQuery rQuery, UserInfoVO userinfo)
			throws Exception;

	/**
	 * 删除角色
	 * 
	 * @param role
	 * @param userinfo
	 * @return
	 * @throws Exception
	 */
	public boolean delete(String id, UserInfoVO userinfo) throws Exception;
}
